package com.liu.mapper;


import com.liu.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface OrderMapper {

    int deleteByPrimaryKey(String id);

    /**
     * 生成一个订单
     * @param record
     * @return
     */
    int insert(Order record);

    /**
     *
     * @param record
     * @return
     */
    int insertSelective(Order record);

    /**
     * 根据主键查询库存
     * @param id
     * @return
     */
    Order selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
}